﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VietThinks.Model;

namespace VietThinks.Mapping.Maps
{
    public class AccountInfoMap : DomainEntityMap<AccountInfo>
    {
        public AccountInfoMap()
        {
            Schema("Account");
            Table("AccountInfo");
            Map(m => m.FirstName).Not.Nullable();
            Map(m => m.LastName).Not.Nullable();
            Map(m => m.Gender );
            Map(m => m.BirthDay);
            References(m => m.Province, "ProvinceId");            
            Map(m => m.Address);
            Map(m => m.Phone);
            Map(m => m.Tel);
            Map(m => m.Fax);
            Map(m => m.CreatedDate);
            Map(m => m.ModifiedDate);
            References(m => m.Account, "AccountId");
        }
    }
}
